import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/licenseapplication/` + url, ...arg)

/**
 * 授权申请Api接口管理器
 *
 * @author xiaochen
 * @date  2025/06/10 15:31
 **/
export default {
	// 获取授权申请分页
	licenseApplicationPage(data) {
		return request('page', data, 'get')
	},
	// 提交授权申请表单 edit为true时为编辑，默认为新增
	licenseApplicationSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	licenseApplicationExtend(data) {
		return request('extend', data)
	},
	// 删除授权申请
	licenseApplicationDelete(data) {
		return request('delete', data)
	},
	// 获取授权申请详情
	licenseApplicationDetail(data) {
		return request('detail', data, 'get')
	},
	licenseApplicationCreate(data) {
		return request('create', data)
	},
	// 审批通过授权申请
	licenseApplicationApprove(data) {
		return request('approve', data)
	},
}
